package com.xydtech.ecard.ftp.enums;

/**
 * @Author: liliya
 * @Description: 暂时给FTP使用的sys_dict_type中的配置项
 * @Date: Created in 2023/8/16 21:03
 * @Modified:
 */
public enum FtpSysDictTypeEnum {

    REPRICING_FREQUENCY_TYPE("重定价频率类型","repricing_frequency_type"),
    INTEREST_FREQUENCY_TYPE("结息频率类型","interest_frequency_type"),
    REPAYMENT_FREQUENCY_TYPE("还款频率类型","repayment_frequency_type"),
    ORIGINAL_DEADLINE_TYPE("原始期限范围类型","original_deadline_type"),
    CALCU_UNDER_TYPE("下限计算类型","calcu_under_type"),
    CALCU_UPPER_TYPE("上限计算类型","calcu_upper_type"),
    CALCU_PERIOD_UNIT("周期计算单位类型","calcu_period_unit"),
    LOAN_REPAYMENT_MODE_TYPE("贷款还款方式","loan_repayment_mode_type"),
    FTP_BUSINESS_VARIETY("FTP业务品种","ftp_business_variety"),
    INTEREST_RATE_TYPE("利率类型","interest_rate_type");

    private String dictName;
    private String dictType;

    FtpSysDictTypeEnum(String dictName, String dictType) {
        this.dictName = dictName;
        this.dictType = dictType;
    }

    public String getDictType() {
        return dictType;
    }

    public String getDictName() {
        return dictName;
    }

    public static FtpSysDictTypeEnum values(String type){
        for(FtpSysDictTypeEnum enums : FtpSysDictTypeEnum.values()){
            if(enums.getDictType().equals(type)){
                return enums;
            }
        }
        return null;
    }


}
